
var api = require('../../util/api.js');

Page({
  data: {
    tel: ''
  },
  onLoad(){
    
  },
  goRatingSystem: function (e) {
    this.bangding(e);
  },
  inputCode(e) {
    this.setData({
      tel: e.detail.value
    })
  },
  bangding(e) {

    wx.setStorageSync('appid', api.appid);
    api.syncCurrUser(this.data.tel).then(res=>{
      wx.switchTab({
        url: '/pages/gsjj/gsjj'
      })
    });
  }
});